<template>
  <div class="home">
    <!-- 头部区域 -->
    <header class="hero">
      <div class="hero-content">
        <div class="hero-text">
          <h1 class="site-title">立石译</h1>
          <p class="subtitle">专业的 DDO 汉化翻译平台</p>
          <p class="description">为中文玩家提供最全面的《龙与地下城Online》游戏内容翻译</p>
          <div class="cta-buttons">
            <router-link to="/translation" class="btn btn-primary">加入翻译</router-link>
          </div>
        </div>
        <div class="hero-image">
          <img src="/images/vera-dragon.svg" alt="红龙维拉" />
        </div>
      </div>
      <div class="hero-overlay"></div>
    </header>

    <!-- 特色功能区域 -->
    <section class="features">
      <div class="container">
        <h2 class="section-title">我们的特色</h2>
        <div class="feature-grid">
          <div class="feature-card">
            <div class="feature-icon dragon-icon">🐉</div>
            <h3>红龙维拉专区</h3>
            <p>专注于DDO游戏中红龙维拉相关内容的深度翻译与解析</p>
          </div>
          
          <div class="feature-card">
            <div class="feature-icon book-icon">📚</div>
            <h3>全面汉化</h3>
            <p>提供完整的游戏文本、任务描述、物品说明等汉化内容</p>
          </div>
          
          <div class="feature-card">
            <div class="feature-icon community-icon">🌍</div>
            <h3>社区共享</h3>
            <p>建立玩家交流社区，分享汉化成果与游戏心得</p>
          </div>
        </div>
      </div>
    </section>

    <!-- 红龙维拉专题 -->
    <section class="vera-section">
      <div class="container">
        <h2 class="section-title">红龙维拉专题</h2>
        <div class="vera-content">
          <div class="vera-image">
            <img src="/images/vera-dragon.svg" alt="红龙维拉" />
          </div>
          <div class="vera-description">
            <h3>维拉 - 红龙女王</h3>
            <p>维拉，作为《龙与地下城Online》中最著名的反派之一，是一条强大的红龙。她盘踞在艾伯伦世界的风暴之港，是玩家们最难忘的Boss战之一。</p>
            <p>我们的平台提供关于维拉的详尽背景故事、战斗攻略以及相关任务的高质量翻译，让中文玩家能够深入体验这一经典角色的魅力。</p>
            <router-link to="/vera" class="btn btn-primary">深入了解维拉</router-link>
          </div>
        </div>
      </div>
    </section>

    <!-- 最新更新 -->
    <section class="updates">
      <div class="container">
        <h2 class="section-title">最新更新</h2>
        <div class="update-list">
          <div class="update-item">
            <h4>维拉战斗机制详解</h4>
            <p class="update-date">2025-10-01</p>
            <p>新增维拉战斗阶段详细分析，包括各阶段技能释放规律和应对策略</p>
          </div>
          <div class="update-item">
            <h4>任务"红龙之怒"翻译完成</h4>
            <p class="update-date">2025-09-28</p>
            <p>完成该任务所有对话和文本的翻译工作，现已上线</p>
          </div>
          <div class="update-item">
            <h4>物品图鉴更新</h4>
            <p class="update-date">2025-09-25</p>
            <p>新增维拉系列装备名称和属性翻译</p>
          </div>
        </div>
      </div>
    </section>

    <!-- 页脚 -->
    <footer class="site-footer">
      <div class="container">
        <div class="footer-content">
          <div class="footer-info">
            <h3>立石译</h3>
            <p>专业的 DDO 汉化翻译平台</p>
          </div>
          <div class="footer-links">
            <router-link to="/about">关于我们</router-link>
<!--            <router-link to="/contact">联系我们</router-link>-->
          </div>
        </div>
        <div class="footer-bottom">
          <p>&copy; 2025 立石译 - DDO 汉化翻译平台</p>
          <p><a href="http://www.beian.gov.cn/" target="_blank" style="color:gray">黔ICP备2025059476号-1</a>  本站点与 Dungeons & Dragons Online 官方无关</p>
        </div>
      </div>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'Home'
}
</script>

<style scoped>
.home {
  min-height: 100vh;
  background: #0a0e17;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 头部区域样式 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2a6c, #2c3e50, #4a235a);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, #0a0e17 120%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
  padding: 0 40px;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.site-title {
  font-size: 4.5rem;
  margin-bottom: 15px;
  color: #ff4d4d;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  font-weight: 800;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffd700;
  font-weight: 600;
}

.description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #cccccc;
  line-height: 1.6;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border: 3px solid #ff4d4d;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: #e63946;
  color: white;
  border-color: #e63946;
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background-color: transparent;
  color: #ff4d4d;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: #f1faee;
  border-color: #f1faee;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffd700;
  transform: translateY(-3px);
}

/* 通用容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #ff4d4d;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, #ff4d4d, transparent);
}

/* 特色功能区域样式 */
.features {
  padding: 100px 0;
  background: #0f172a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 77, 77, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 77, 77, 0.5);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.dragon-icon {
  color: #ff4d4d;
}

.book-icon {
  color: #4d79ff;
}

.community-icon {
  color: #4dff88;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #ffd700;
}

.feature-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cccccc;
}

/* 红龙维拉专题样式 */
.vera-section {
  padding: 100px 0;
  background: #1a1a2e;
}

.vera-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
}

.vera-image {
  display: flex;
  justify-content: center;
}

.vera-image img {
  max-width: 100%;
  border: 3px solid #ff4d4d;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
}

.vera-description h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff4d4d;
}

.vera-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #cccccc;
}

/* 最新更新样式 */
.updates {
  padding: 100px 0;
  background: #0f172a;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.update-item {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.update-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.5);
}

.update-item h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #ffd700;
}

.update-date {
  color: #4d79ff;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.update-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
}

/* 页脚样式 */
.site-footer {
  background: #0a0e17;
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255, 77, 77, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 1.8rem;
  color: #ff4d4d;
  margin-bottom: 10px;
}

.footer-info p {
  color: #cccccc;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #4d79ff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 10px 0;
  color: #718096;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 20px;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image {
    order: 1;
  }
  
  .site-title {
    font-size: 3.5rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .vera-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 2.8rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-grid,
  .update-list {
    grid-template-columns: 1fr;
  }
}
</style>